package com.woniu.atms.entity;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * (G5CarType)实体类
 *
 * @author makejava
 * @since 2022-01-17 14:25:27
 */
public class G5CarType implements Serializable {
    private static final long serialVersionUID = 214018856945426771L;
    
    private Integer id;

    @Size(min = 1 ,max = 10 ,message = "类型名不符合要求！")
    private String name;

    @NotNull(message = "坐位数不能为null")
    @Min(value = 1,message = "坐位数需为正整数")
    private Integer seatNum;
    
    private String isExit;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    public String getIsExit() {
        return isExit;
    }

    public void setIsExit(String isExit) {
        this.isExit = isExit;
    }

    @Override
    public String toString() {
        return "G5CarType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", seatNum=" + seatNum +
                ", isExit='" + isExit + '\'' +
                '}';
    }
}

